Skip to content

Treat often-stopped services as informational for all exit codes - #142

Open
ndemou wants to merge 1 commit into
mainfrom
codex/services-often-stopped-all-exit-codes
Open

ndemou wants to merge 1 commit into
mainfrom
codex/services-often-stopped-all-exit-codes

Conversation

@ndemou

@ndemou ndemou commented Nov 27, 2026

Copy link
Copy Markdown
Owner

MapsBroker can report exit code 50 (The request is not supported) on Windows SQL Server. HealthTest-Services currently reports this as FAILURE even though MapsBroker is already in SERVICES_THAT_ARE_OFTEN_STOPPED, because the exception also requires exit code 0 or 1077.

Apply the existing informational exception to every exit code for both the named services and the regex matches. Keep the exit code and its explanation in the finding, and remove the claim that the service terminated normally. Unlisted services retain their current NOTICE/FAILURE behavior, and broken service payloads still produce FAILURE findings.

Add 82 Pester regression cases covering listed services, case-insensitive matching, regex matches and near misses, normal/never-started/abnormal/unknown exit codes, unlisted services, payload failures, and healthy services.

Validation:

  • All 82 new cases pass under PowerShell 7.7.0 with Pester 5.9.1 on Linux, with the CIM query mocked. Against the original source, 71 cases fail and 11 pass.
  • PSScriptAnalyzer PSUseCompatibleSyntax targeting PowerShell 5.1 reports no findings in either changed file; both files parse successfully.
  • git diff --check passes.
  • Windows PowerShell 5.1 unit and smoke runs were not available locally. The existing Windows Tests pull-request workflow runs tests/run-all-tests.ps1 -Smoke on windows-2022 using Windows PowerShell.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T04:28:31.775228Z 2f5b920 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant